﻿@inherits SampleSite.Models.CustomViewPage
@{
   
    var currentPage = PageProvider.GetCurrentPage(HttpContext.Current);
    
    if(currentPage == null || currentPage.Path=="/")
    {
       return;
    }
    
    var navItems = PageStubCache.GetChildPageStubsFor(currentPage.Path);
        
}
    <ul id="menu">
        @foreach (var nav in navItems)
        {
            <li><a href="@nav.Path">@nav.Title</a></li>    
        }
    </ul>